﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <meta name="apple-mobile-web-app-title" content="思路广惠">
    <title>商品列表</title>
    
    
    
    <meta content="telephone=no" name="format-detection" />

    
    <link rel="stylesheet" type="text/css" href="../../src/css/base.css?1.0" />
</head>
<body>
    <header class="order-header">
        <a href="javascript: history.go(-1)" class="order-left"><i class="iconfont icon-fanhui i2m"></i></a>
        <div class="order-text">订单详情</div>
    </header>
    <section class="back-detail">
        
    </section>
    
    <script type="text/html" id="sections">
        
        <div class="h-top"></div>
        
        <div class="order-detail-state">

            <span>{{d.Order_Mark}}</span>
            <img src="../../src/images/order{{d.Order_Mark}}.png" />

        </div>
        <div class="order-address">
            <div class="icon-location"> <img src="../../src/images/icon-location.png" /> </div>
            <div class="per-for">
                <p> 收货人：{{d.Order_ReceiveName}} <span>{{d.Order_ReceivePhone}}</span></p>
                <p>收货地址：{{d.Order_ReceiveAddress}}</p>
            </div>
        </div>
        <div class="order-all">
            <div class="order-items">
                <div class="order-name"><span class="store-name" data-type="{{d.Business_ID}}">{{d.Business_Name}} > </span>  </div>
                {{# for(var i = 0; i < d.OrderList.length; i++){ }}
                <div class="order-item">
                    <div class="order-content">
                        <a class="order-left-pic" href="javascript:void(0);"> <img src={{d.img}}{{d.OrderList[i].Image_Url}} /> </a>
                        <div class="order-right-txt">
                            <div class="order-tit"> <a href="javascript:void(0);">{{d.OrderList[i].Product_Name}}</a></div>
                            <div class="order-spec">{{d.OrderList[i].ProductSuk_Name}}</div>
                            <div class="order-price">积分：{{d.OrderList[i].ProductSuk_PricePoints}}  +  <span class="red">￥{{d.OrderList[i].ProductSuk_PriceCash}}</span>  <span class="ord-num">×{{d.OrderList[i].OrderList_Amount}}</span>  </div>
                        </div>
                        <div class="clear"></div>
                    </div> 
                </div>
                {{# } }}
                <div class="order-back">
                    <span class="order-itg-icon">积分</span> <span>返还积分：</span> <span class="red">{{d.Order_BackTotalPoints}}</span>
                </div>
                <div class="order-contant">
                    <div class="order-server">
                        <img src="../../src/images/icon-kefu-blue.png" />
                        <span>联系卖家</span>
                    </div>
                    <div class="order-wine"></div>
                    <div class="order-call">
                        <img src="../../src/images/icon-phone-blue.png" />
                        <span>拨打电话</span>
                    </div>
                </div>
            </div>
            <div class="order-items">
                <div class="order-num">
                    <p>订单编号：1212556456454645648564564565456 <button class="btn infor-btn">复制</button> </p>
                    <p>创建时间：{{d.Order_BuyApplyTime}}</p>
                </div>
            </div>
        </div>
         
        
        <div class="h-footer"></div>
        <div class="order-detail-footer">
            <div class="order-items">
                <button class="btn infor-btn">取消订单</button>
                <button class="btn for-btn" onclick="window.location.href='提交订单-选择支付方式.html'">立即付款</button>
            </div>

        </div>
    </script>
    <script src="../../src/js/all.js" type="text/javascript" charset="utf-8"></script>
    <script>
        silks.loads(["../Content/js/jquery.2.1.4.min.js", "../Content/js/laytpl.js"], function () {

            $.get(urls + '/WorkOrder/GetOrderInfo', { OrderID: location.search.substring(1), MembersID: MembersID, AppID: AppID, Token: Token }, function (res) {
                console.log(res)
                if (res.Return_ID == 0) {
                    var res = res.Return_Data;
                    res.img = imgurlbig; // 添加图片总路径

                    laytpl($("#sections").html()).render(res, function (html) {
                        $("section").html(html);
                    });

                }
            });


             


        });
    </script>
</body>
</html>